package com.qingcloud.adminbackend.entity.stationgroup;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.qingcloud.adminbackend.entity.equipment.SysEquipment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 设备组
 * </p>
 *
 * @author luozehua
 * @since 2018-11-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_stationgroup")
public class SysStationGroup extends Model {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID", example = "1", hidden = true)
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /**
     * 所属组织
     */
    @ApiModelProperty(value = "所属组织", example = "XX")
    private String orgId;
    /**
     * 设备组名称
     */
    @ApiModelProperty(value = "设备组名称", example = "XX")
    @TableField(value = "`name`")
    private String name;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", example = "XX")
    private String description;
    @ApiModelProperty(value = "创建时间", example = "2018-09-09 09:09:09", hidden = true)
    private Date createDt;
    @ApiModelProperty(value = "创建人", example = "XX", hidden = true)
    private String createBy;
    @ApiModelProperty(value = "修改时间", example = "2018-09-09 09:09:09", hidden = true)
    private Date modifyDt;
    @ApiModelProperty(value = "修改人", example = "XX", hidden = true)
    private String modifyBy;
    @ApiModelProperty(value = "客户名称", example = "XX")
    @TableField(exist = false)
    private String orgName;
    /**
     * 组内设备数量
     */
    @ApiModelProperty(value = "组内设备数量", example = "60")
    @TableField(exist = false)
    private Integer stationNum;

    @ApiModelProperty(value = "当前第几页", example = "60")
    @TableField(exist = false)
    private Integer currentPage;

    @ApiModelProperty(value = "每页多少条", example = "60")
    @TableField(exist = false)
    private Integer perPage;

    @ApiModelProperty(value = "设备ID列表")
    @TableField(exist = false)
    private List<SysEquipment> eqs;

    @ApiModelProperty(value = "设备组的管理权限，1:可管理，0:来自一级客户授权的设备组，-1:啥都不能干，你就只能看看而已", example = "1")
    @TableField(exist = false)
    private Integer manageEquipment;

    @ApiModelProperty(value = "客户类型，1:已经客户，2 ：分支机构", example = "1")
    @TableField(exist = false)
    private Integer category;


}
